﻿<UserControl x:Class="MEF_Test.VideoRenderer.LocalVideoRenderer.LocalVideoRendererView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:Behaviors="clr-namespace:MEF_Test.Bricks.Behaviors;assembly=MEF-Test.Bricks"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Wrappers="clr-namespace:MEF_Test.Bricks.Wrappers;assembly=MEF-Test.Bricks"
             Background="Black">
    <Grid>       
        <Wrappers:MydraMediaUriElement x:Name="mediaPlayer" 
                               Behaviors:MydraMediaUriElementEventsToCommandsBehavior.SeekToPositionCommand="{Binding SeekMediaPositionCommand}"
                               Behaviors:MydraMediaUriElementEventsToCommandsBehavior.BoundCommand="{Binding MediaPositionChangedCommand}"
                               Behaviors:MydraMediaUriElementPlayerControlsProxyBehavior.IsEnabled="True"
                               Volume="1"
                               Source="{Binding FileHandler.Path}"
                               Stretch="Uniform"
                               VideoRenderer="VideoMixingRenderer9"
                               LoadedBehavior="Play"
                               SpeedRatio="1"                                   
                               Loop="True"/>    
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Right"  Orientation="Horizontal">
            <Button Opacity="0.3" Command="{Binding ShowLocalControlsCommand}">Back To Controls</Button>
            <Button Opacity="0.3" Command="{Binding ShowPlaybackControlsCommand}">Show Playback Controls</Button>
        </StackPanel>
        
        <!--Replace with a plug-in !-->
        
        <TextBlock Text="{Binding DisplayedSubtitleText}" FontSize="25"  FontFamily="Segoe UI" Foreground="White" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="5">
            <TextBlock.Effect>
                <DropShadowEffect Direction="0" />
            </TextBlock.Effect>
        </TextBlock>
    </Grid>
</UserControl>
